package com.weixstudio.dubbo.controller;

import com.weixstudio.dubbo.service.ISimpleService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author liangw
 * @Date 2022/5/8 10:46
 * @Version 1.0
 **/
@RestController
public class TestController {

    @Reference
    ISimpleService simpleService;

    @GetMapping(value = "/rpcHttp")
    public void  rpcHttp(){
        System.out.println(simpleService.queryStrDesc());
    }
}
